//
//  main.m
//  OC3_继承
//
//  Created by dllo on 15/10/26.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Person.h"
#import "Student.h"
#import "Student1.h"
#import "CollegeStudent.h"

int main(int argc, const char * argv[]) {

//    Person *p = [[Person alloc] initWithName:@"张三" sex:@"男" age:24];
//    
//    [p info];
//    
//    [p setName:@"王五"];
//    NSString *per = [p name];
//    NSLog(@"%@", per);
//    
//    Student *stu = [[Student alloc] initWithName:@"李四" sex:@"女" age:23 score:99.9];
//    [stu info];
    
//    Student1 *stu = [[Student1 alloc] initWithName:@"赵六" sex:@"男" age:26 score:88.8];
//    [stu info];
//    
//    [stu setName:@"田七"];
//    NSLog(@"%@", [stu name]);
    
//    CollegeStudent *col = [[CollegeStudent alloc] initWithName:@"啦啦啦" sex:@"女" age:26 score:88.8 major:@"信科" credit:66.6];
//    [col info];
    
//    Student1 *stu = [Student1 studentWithName:@"啦啦啦" sex:@"女" age:26 score:88.8];
//    [stu info];
    
//    Person * p = [Person personWithName:@"李四" sex:@"男" age:34];
//    [p info];
    
    CollegeStudent *co = [CollegeStudent CollegeStudentWithName:@"阿斯顿" sex:@"男" age:23 score:65 major:@"qewr" credit:32];
    [co info];
    
    
    
    
    return 0;
}
